﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/QuanTri.master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	QuanTriChuyenMuc 
    <style type="text/css">
        #txb_Description
        {
            height: 107px;
            width: 305px;
        }
    </style>
    <style type="text/css">
        #txb_Description
        {
            height: 109px;
            width: 263px;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script runat="server">
        void menu_User_MenuItemClick(object sender, MenuEventArgs e)
        {
            int index = int.Parse(e.Item.Value);
            MultiView1.ActiveViewIndex = index;
        }
        void Page_Load(object sender, EventArgs e)
        {
        if (!IsPostBack)
            {
            MultiView1.ActiveViewIndex = 0;
            }
        }
    </script>
    
    <asp:Menu ID="menu_User" runat="server" onMenuItemClick="menu_User_MenuItemClick"  BackColor="#FFFBD6" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" 
            ForeColor="#990000" Orientation="Horizontal" StaticSubMenuIndent="10px">
            <StaticSelectedStyle BackColor="#FFCC66" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
            <DynamicMenuStyle BackColor="#FFFBD6" />
            <DynamicSelectedStyle BackColor="#FFCC66" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticHoverStyle BackColor="#990000" ForeColor="White" />
            <Items>
                <asp:MenuItem Text="Thêm chuyên m&#7909;c" Value="0">
                </asp:MenuItem>
                <asp:MenuItem Text="Ch&#7881;nh s&#7917;a chuyên m&#7909;c" Value="1"></asp:MenuItem>
            </Items>
        </asp:Menu>
        
        
    <div class="register">
        <asp:MultiView ID="MultiView1" runat="server" >
            <asp:View ID="view_AddCategory" runat="server">
                <form>
                    <table border="0" align="center">
                        <tr>
                            <td>Tên chuyên m&#7909;c:</td>
                            <td><input type="text" ID="txb_CategoryName" size="30" /></td>
                        </tr>
                        <tr>
                            <td>Chuyên m&#7909;c cha:</td>
                            <td><select ID="ddl_ParentCategory" >
                                        <%foreach (var i in (IEnumerable <String>) ViewData["DS_DanhMucChinh"])
                                          { %>
                                          <option><%=(String)i%></option>
                                          <%} %>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>Mô t&#7843;:</td>
                            <td bgcolor="#FFCCFF"><textarea ID="txb_Description"/></textarea></td></tr>
                        <tr>
                            <td></td>
                            <td><input type="button"  size="80" value= "Thêm"> <input type="reset" value= "H&#7911;y"/></td>
                        </tr>
                     </table>
                     </form>
              </asp:View>
             <asp:View ID="view_EditCategory" runat="server">
                <table border="0" align="center">
                        <tr>
                            <td>Chuyên m&#7909;c cha:</td>
                            <td><select ID="ddl_Parent" >
                                        <%foreach (var i in (IEnumerable< String >) ViewData["DS_DanhMucChinh"])
                                          { %>
                                          <option><%=i%></option>
                                          <%} %>
                                </select> </td></tr><tr>
                            <td>Chuyên m&#7909;c con:</td><td><select ID="ddl_Child" >
                                </select> </td></tr>
                  </table>
                  <table border="1" align="center">
                        <tr><td>
                        <form>
                            <table border="0" align="center">
                                <tr>
                                    <td>Tên chuyên m&#7909;c:</td><td><input type="text" id="Etxb_CategoryName"/> </td>
                                </tr>
                                <tr>
                                    <td>Ghi chú:</td>
                                    <td><textarea ID="Etxb_Description" >
                                        </textarea> </td>
                                 </tr>
                                 <tr visible="false">
                                    <td>&#272;&#7893;i chuyên m&#7909;c cha:</td>
                                    <td><select id="Eddl_ParentCategory">
                                            <%foreach (var i in (IEnumerable< String >) ViewData["DS_DanhMucChinh"])
                                              { %>
                                              <option><%=i%></option>
                                              <%} %>
                                        </select> </td>
                                  </tr>
                                  <tr>
                                        <td></td>
                                        <td><input type="button"  size="80" value= "Lưu thay đổi"> <input type="reset" value= "H&#7911;y"/></td>
                                   </tr>
                                   </table>
                                    </form>
                                 </td></tr>
                   </table>
                        
          </asp:View>
    </asp:MultiView>
    </div>
</asp:Content>